package com.zjw.spring;

import com.zjw.spring.model.Person;

/**
 * test spring static factory method to create bean
 * @author zjw
 *
 */
public class StaticPersonFactory {
	
	public static Person createPerson(int id,String name,int age){
		Person p = new Person();
		p.setId(id);
		p.setName(name);
		p.setAge(age);
		System.out.println("createPerson("+id+","+name+","+age+") executed...");
		return p;
	}

}
